package org.kernely.stream.administration;

import org.kernely.ui.mvp.IKernelyView;

import com.vaadin.ui.Component;
import com.vaadin.ui.TextField;
import com.vaadin.ui.VerticalLayout;

/**
 *	View where user can change informations about a stream.
 */
@SuppressWarnings("serial")
public class StreamInformationsView extends VerticalLayout implements IKernelyView{

	private TextField title;
	
	/**
	 * Default constructor.
	 */
	public StreamInformationsView(){
		this.title = new TextField("Title");
		this.title.setMaxLength(100);
		this.title.setRequired(true);
		this.title.setRequiredError("Title can not be empty!");
		this.setMargin(true);
		this.addComponent(this.title);
		
	}

	/**
	 * @return the title
	 */
	public final TextField getTitle() {
		return title;
	}

	/**
	 * Useless method.
	 */
	public final Component getComponent() {
		return this;
	}

}
